package com.qumap.item;

import com.google.gwt.event.shared.EventBus;
import com.qumap.item.content.ObjectOnMapShort;
import com.qumap.item.request.ItemFilterAndLoadProcessor;
import com.qumap.item.info.ImageContainer;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 17.05.11
 * Time: 19:54
 * To change this template use File | Settings | File Templates.
 */
public abstract class ItemInfo {

	protected String type;

	public abstract IITemInfoDisplay getItemDisplay();
    public abstract ItemFilterAndLoadProcessor getFilterDisplay();
    public abstract ObjectOnMapShort createContent();
    public abstract ImageContainer getContainerByContent(ObjectOnMapShort content);

    public void setEventBus(EventBus event_bus) {
        getFilterDisplay().setEventBus(event_bus);
    }

    public void init() {
        getFilterDisplay().setItemInfo(this);
        getFilterDisplay().init();
    }

	public String getType() {
		return type;
	}


}
